﻿<UserControl x:Class="Notoric.Gui.Controls.EditableTextBlock"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:my="clr-namespace:Notoric.Gui.Controls"
             x:Name="parentControl"
             >
    <Grid>
        <TextBlock x:Name="PART_Block" Text="{Binding Mode=OneWay, Path=DisplayName}" Visibility="Visible"/>
        <TextBox x:Name="PART_Box" Text="{Binding Mode=TwoWay, Path=Name}" Visibility="Collapsed" LostFocus="PART_Box_LostFocus" KeyDown="PART_Box_KeyDown"/>
    </Grid>
</UserControl>
